package com.leyou.common.vo;

import com.leyou.common.exceptions.LyException;
import lombok.Getter;

import java.util.Date;

/**
 * 处理请求和响应的方法
 *
 * @version V1.0
 * @package com.leyou.common.vo
 * @description:
 * @author: pc
 * @date: 2019/6/22 21:13
 */
@Getter
public class ExcrptionResult {
    private int status;
    private String message;
    private String timestamp;


    public ExcrptionResult(LyException e) {
        this.status=e.getStatus();
        this.message=e.getMessage();
        this.timestamp=new Date().toLocaleString();
    }
}
